<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            background-color:bisque;
        }
        .inner1{
            height: 150px;
            width: 150px;
            background-color: green;
        }
        span{
            background-color: red;
        }
        .inner1{
            vertical-align: middle;
            display: inline-block;
        }
        .inner2{
            height: 300px;
            width: 300px;
            background-color: pink;
            vertical-align: middle;
            display: inline-block;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="inner1"></div>
        <span>我是帅气的文字</span>
        <div class="inner2"></div>
        <span>我是帅气的文字</span>
    </div>
</body>
</html>